import order from './order';
import deliveryPoint from './deliveryPoint';
import house from './house';
const install = (Vue) => {
	let apis = {
		// 登录接口
		loginInWx(data = {}) {
			return Vue.prototype.$u.post('/shop/wxLogin/loginInWx', data)
		},
		// 解密获取手机号
		getPhone(data = {}) {
			return Vue.prototype.$u.post('/shop/wxLogin/getPhone', data)
		},
		// 会员登录
		saveClient(data = {}) {
			return Vue.prototype.$u.post('/shop/shopWxClient/saveClient', data)
		},
		// 获取服务类型
		getShopServiceApi(data = {}) {
			return Vue.prototype.$u.post('/shop/shopService/getShopService', data)
		},
		// 数据字典
		getShopDictionaryListApi(data = {}) {
			return Vue.prototype.$u.post('/shop/shopDictionary/getShopDictionaryList', data)
		},
		// 获取轮播图
		getShopBannerListApi(data = {}) {
			return Vue.prototype.$u.post('/shop/shopBanner/getShopBannerList', data)
		},
	}
	Vue.prototype.$u.api = {
		...apis,
		...order,
		...deliveryPoint,
		...house
	};
}

export default {
	install
}